﻿@{
    ViewBag.Title = "Redis测试";
}

<style>

    @@font-face {
        font-family: 'Roboto';
        font-style: normal;
        font-weight: 400;
        src: local('Roboto'),local('Roboto-Regular'),url(/fonts/Roboto-Regular.ttf) format('truetype');
    }

    /*bootstrap样式扩展：改变边框颜色 潘帅阳2018年10月27日10:00:30
            @@import url(https://fonts.googleapis.com/css?family=Roboto)
         */

    .blockquote-primary {
        border-color: #428bca !important;
    }

    .blockquote-success {
        border-color: #3c763d !important;
    }

    .blockquote-info {
        border-color: #31708f !important;
    }

    .blockquote-warning {
        border-color: #8a6d3b !important;
    }

    .blockquote-danger {
        border-color: #a94442 !important;
    }

    .blockquote-success {
        border-color: #3c763d !important;
    }

    .blockquote-marks {
        font: 14px/20px italic Times, serif;
        color: #888;
        padding: 18px;
        background-color: #dddddd;
        border-left: 15px solid #666666;
        margin: 5px;
        background-image: url(/content/images/quote_open.png);
        background-position: 15px 10px;
        background-repeat: no-repeat;
        text-indent: 23px;
    }

        .blockquote-marks div {
            display: block;
            background-image: url(/content/images/quote_close.png);
            background-repeat: no-repeat;
            background-position: bottom right;
        }
</style>
<div class="jumbotron">
    <div class="panel panel-default">
        <div class="panel-heading">Redis测试</div>
        <div class="panel-body">



            <blockquote class="blockquote-marks blockquote-success">
                <div>
                    <h4>string类型测试</h4>
                    <h5>@ViewData["String1"]</h5>

                    <h5>@ViewData["String2"]</h5>
                </div>
            </blockquote>

            <blockquote class="blockquote-primary blockquote-marks">
                <div>
                    <dl>
                        <dt>获取HashKey测试：</dt>
                        @*@foreach (var item in (List<string>)ViewData["HaskKey"])
                        {
                            <dd> @item </dd>
                        }*@
                    </dl>

                    <dl>
                        <dt>获取HaskValue测试：</dt>
                        @*@foreach (var item in (List<string>)ViewData["HaskValue"])
                        {
                            <dd>@item </dd>
                        }*@
                    </dl>

                    <dl>
                        <dt>获取所有的key测试：</dt>
                        @foreach (var items in (List<string>)ViewData["AllKey"])
                        {
                        <dd>
                            @items ：
                           
                            @{ if (@items.Substring(0, 5) == "StuID")
                                {
                                    foreach (var item2 in (List<string>)ViewData[items])
                                    {
                                        @item2
                                    }
                                }
                            }
                        </dd>
                        }
                    </dl>
                </div>
            </blockquote>

            <blockquote class="blockquote-primary blockquote-marks">
                <div>
                    <dl>
                        <dt>获取List测试：</dt>
                        @*@foreach (var item in (List<string>)ViewData["qList"])
                        {
                            <dd> @string.Format("QueueListId出队值：{0}", @item)</dd>
                        }*@
                    </dl>

                    <dl>
                        <dt>获取List测试：</dt>
                        @*@foreach (var item in (List<string>)ViewData["pList"])
                        {
                            <dd>@string.Format("StackListId出栈值：{0}", item) </dd>
                        }*@
                    </dl>


                </div>
            </blockquote>

            <blockquote class="blockquote-primary blockquote-marks">
                <div>
                    <dl>
                        <dt>无序集合Set测试：（出来的结果是无序的）</dt>
                        @*@foreach (var item in (HashSet<string>)ViewData["hashsetA"])
                        {
                            <dd> @string.Format("Set无序集合ValueA:{0}", item)</dd>
                        }*@
                    </dl>

                    <dl>
                        <dt>无序集合Set测试：（出来的结果是无序的）</dt>
                        @*@foreach (var item in (HashSet<string>)ViewData["hashsetB"])
                        {
                            <dd>@string.Format("Set无序集合ValueB：{0}", item) </dd>
                        }*@
                    </dl>

                    <dl>
                        <dt>Set 并集：</dt>
                        @*@foreach (var item in (HashSet<string>)ViewData["hashUnion"])
                        {
                            <dd>@string.Format("求Set1001和Set1002的并集：{0}", item) </dd>
                        }*@
                    </dl>

                    <dl>
                        <dt>Set交集：</dt>
                        @*@foreach (var item in (HashSet<string>)ViewData["hashG"])
                        {
                            <dd>@string.Format("求Set1001和Set1002的交集：{0}", item) </dd>
                        }*@
                    </dl>
                    <dl>
                        <dt>Set差集（返回存在于第一个集合，但是不存在于其他集合的数据。差集）：</dt>
                        @*@foreach (var item in (HashSet<string>)ViewData["hashD"])
                        {
                            <dd>@string.Format("求Set1001和Set1002的差集：{0}", item) </dd>
                        }*@
                    </dl>

                </div>
            </blockquote>

            <blockquote class="blockquote-primary blockquote-marks">
                <div>
                    <dl>
                        <dt>有序集合：</dt>
                        @*@foreach (var item in (List<string>)ViewData["listSetSorted"])
                        {
                            <dd> @string.Format("SetSorted有序集合：{0}", @item)</dd>
                        }*@
                    </dl>




                </div>
            </blockquote>

        </div>
    </div>




</div>



